//
//  MyKeyedArchiver.m
//  MoneyLog
//
//  Created by Max on 11-4-9.
//  Copyright 2011年 wicresoft. All rights reserved.
//

#include "MyKeyedArchiver.h"

@implementation MyKeyedArchiver

- (void)encodeValueOfObjCType:(const char *)valueType at:(const void *)address
{
    NSMutableData *datas = [NSMutableData data];
    NSKeyedArchiver *arch = [[NSKeyedArchiver alloc] initForWritingWithMutableData:datas];
    [arch encodeValueOfObjCType:valueType
                             at:address];
    [self encodeObject:[NSData dataWithData:datas]];
    [arch release];
}

@end